package libx

import "errors"

type Error struct {
	Code  int
	Error error
}

func NewError(code int, info string) *Error {
	return &Error{
		Code:  code,
		Error: errors.New(info),
	}
}
